package com.ccy.legendary.base.pojo;

import java.util.ArrayList;
import java.util.List;

public class ResultBean {

    private int code = 0;

    private boolean status = false;

    private List<String> Messages = new ArrayList<>();


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<String> getMessages() {
        return Messages;
    }

    public void setMessages(List<String> messages) {
        Messages = messages;
    }


    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }


    public void addMessage(String message){
        this.Messages.add(message);
    }

    public void addMessages(List<String> messages){
        this.Messages.addAll(messages);
    }

    public void addResultBean(ResultBean source){
        setCode(source.getCode());
        setStatus(source.isStatus());
        addMessages(source.getMessages());
    }
}
